projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3c8638
)
ARM: rmobile: Enable MTD partitioning on Gen2 with SF
author
Marek Vasut
<
[email protected]
>
Thu, 31 May 2018 12:42:12 +0000
(14:42 +0200)
committer
Marek Vasut
<
[email protected]
>
Fri, 1 Jun 2018 07:42:12 +0000
(09:42 +0200)
Enable MTD partitioning support on Gen2 boards with SPI NORs.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Nobuhiro Iwamatsu <
[email protected]
>
include/configs/rcar-gen2-common.h
patch
|
blob
|
history
diff --git
a/include/configs/rcar-gen2-common.h
b/include/configs/rcar-gen2-common.h
index eadf5594c84bbdf8c44c39720e54a36a073f9434..231c4ecea451dd158bbe4cd14946d847c2ea25f1 100644
(file)
--- a/
include/configs/rcar-gen2-common.h
+++ b/
include/configs/rcar-gen2-common.h
@@
-51,4
+51,12
@@
#define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
#define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN)
+/* SF MTD */
+#if defined(CONFIG_SPI_FLASH_MTD) && !defined(CONFIG_SPL_BUILD)
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#else
+#undef CONFIG_SPI_FLASH_MTD
+#endif
+
#endif /* __RCAR_GEN2_COMMON_H */